
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<body>
获取 Jsp 页面中的pageContext对象:${pageContext}
<hr><br>
<%
    pageContext.setAttribute("name", "张三1"); //map
%>
从page域(pageScope)中查找数据：${pageScope.name}
<hr><br>
<%
    request.setAttribute("name", "张三2"); //map
%>
从request域(requestScope)中获取数据：${requestScope.name}
<hr><br>
<%
    session.setAttribute("name", "张三3"); //map
%>
从session域(sessionScope)中获取数据：${sessionScope.name}
<hr><br>
<%
    application.setAttribute("name", "张三4"); //map
%>
从application域(applicationScope)中获取数据：${applicationScope.name}
</body>

</html>